import $http from './axios'

export function getNews() {
    return $http({
        url: 'news',
        method: 'get'
    })
}

export function getUserInfo(){
    return $http({
        url:'douyinInfo',
        method:'get'
    })
}

export function searchWeather(params){
    return $http({
        url:'search/weather',
        method:'get',
        params,
    })
}
export function searchMovie(params){
    return $http({
        url:'search/movie',
        method:'get',
        params,
    })
}

export function searchFund(params){
    return $http({
        url:'search/fund',
        method:'get',
        params,
    })
}